<?php
/* 
	» Alfa CMS Version 1.0.0.1 «
	» Habbo Content Management System - Alfa CMS create by JG «
	» This CMS is for private use, distribution or marketing prohibited. «
	» Jg Projects - Jg Webmaster [http://jgwebmaster.com.ar] «
	» Images and styles from Habbo hotel Sulake, All rights reserved. «
*/
require_once '../Environment.php';

require_login(1);
checkRegister(0);

if($_SESSION['quickregister']['step1']['bean_gender'] == 'male')
	$g = 'm';
else
	$g = 'f';

$sql = query("SELECT * FROM cms_registration_figures WHERE gender = '$g' ORDER BY RAND() LIMIT 6");

$i = 0;

$look = [];

while ($row = mysql_fetch_assoc($sql))
{
	// Generate Rands Looks
	$look[$i++] = $row['figure'];
}

if($_SESSION['quickregister']['step3']['bean_figure'])
{
	$_look = $_SESSION['quickregister']['step3']['bean_figure'];
	$n = 4;
?>
<li>
        <span class="bgtop"></span>
        <span class="bgbottom"></span>
        <img alt="<?=$_look?>" src="<?=getFigure($_look)?>" width="64" height="110"/>
    </li>
<?php
}
else
{
	$n = 5;
}
	

for($b = 0; ; $b++)
{
	if($b > $n)
		break;

	?>
	<li>
        <span class="bgtop"></span>
        <span class="bgbottom"></span>
        <img alt="<?=$look[$b]?>" src="<?=getFigure($look[$b])?>" width="64" height="110"/>
    </li>
	<?php
}

unset($_SESSION['quickregister']['step3']['bean_figure']);
?>

